<div id="dlgListItem" title="Danh sách item">
<?php
	global $ubi;
	
	for ($i = 0; $i < count($listItem); $i++) {
		$item = $listItem[$i];
		$img = $imgs[$item->getItemID()];
		?>
		<div style="float:left">
			<div style="width:100px;margin:0 auto;text-align:center;">
				<img src="<?php echo $ubi['SERVER']['THUMBNAIL_PATH'] . "/" . $img ?>" width="80px" />
				<a href="index.php?view&type=item&id=<?php echo $item->getItemID()?>">
					<?php echo $item->getItem(); ?>
				</a>
			</div>
		</div>
		<?php 
	} 
?>	
</div>

<script language="javascript">
	$('#dlgListItem').dialog({autoOpen: true, width:'360px'});	
</script>